import httpInstance from '@/utils/http'

export const getAllTopic = () => {
  return httpInstance({
    url: '/api/topic/getAllTopic',
    method: 'get',
  })
}

export function getTopicContent(topicId) {
  return httpInstance({
    url: `/api/topic/getTopicContent/${topicId}`,
    method: 'get',
  })
}

export function getTopic(topicId) {
  return httpInstance({
    url: `/api/topic/getTopic/${topicId}`,
    method: 'get',
  })
}

export const getTopTopic = () => {
  return httpInstance({
    url: '/api/topic/getTopTopic',
    method: 'get',
  })
}
